Skip to content

Conversation

@jackofdiamond5
Copy link
Member

@jackofdiamond5 jackofdiamond5 commented Nov 25, 2024

Closes #1298

Additional information related to this pull request:

This PR modifies the NgFileSystem's glob function to expect multiple ignore patterns. It then loops through the contents of the root directory and its subdirectories, ignoring all entries that match any of the provided patterns and collects only the entries that match the expected pattern. Angular's file visitor is used only if no ignore patterns are provided. Additionally, when upgrading packages, the dist folder is now also ignored.

Currently the @igniteui/angular-schematics:upgrade-packages schematic will fail for projects that have not defined an ignite-ui-cli.json config file. The reason is that, at runtime, the schematic will attempt to infer the project's framework from the local config file. This is a rather easy thing to fix but should be done in a separate PR. So, note for testing - a project should always have a config file when attempting to run schematics or cli commands.

- update - ignore dist and node_modules by default
- upgrade-packages - set default framework & project type
@coveralls
Copy link

coveralls commented Nov 25, 2024

Coverage Status

coverage: 70.301% (-0.08%) from 70.38%
when pulling b714285 on bpenkov/ig-upgrade-fixes
into 2fedb28 on master.

@Lipata Lipata merged commit 0e236e7 into master Nov 27, 2024
3 checks passed
@Lipata Lipata deleted the bpenkov/ig-upgrade-fixes branch November 27, 2024 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using upgrade-packages throws an error for Angular projects with workspaces containing ng-package.json file

5 participants